Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Add sample_type field to permit in-code samples. #2996

Merged
merged 5 commits into from
Nov 1, 2019

Conversation

vchudnov-g
Copy link
Contributor

This is an optional field in the sample config. If it is not provided, generators should emit standalone samples only for the given config. (This preserves backward compatibility with uses of the current schema.)

@vchudnov-g vchudnov-g self-assigned this Oct 9, 2019
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 9, 2019
// in-code samples for the same RPC before including them in the
// library source code). If not specified or empty, defaults to
// ["standalone"]
repeated string sample_type = 10
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not compiling - please add a comma after 10

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops! Done

Copy link
Contributor

@yihanzhen yihanzhen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but please address Ruby failure before merging

(Looking at commit history of gapic-generator there doesn't seem to be any change related to Ruby unit tests for a while. So the failure could be due to a change in some dependencies)

@software-dov
Copy link
Contributor

Is this review still open?

@software-dov software-dov self-requested a review October 16, 2019 23:18
@vchudnov-g vchudnov-g force-pushed the incodesample branch 4 times, most recently from b525fb6 to d1fb3a8 Compare October 31, 2019 23:59
@vchudnov-g
Copy link
Contributor Author

Merged with master. I had to tweak the circle config file to make CircleCI pass on my fork. For some reason, the environment: values for the job are not getting passed to each individual step. See, for example, the "Test speech" output for Ruby here: $LANGUAGE (still set using environment:) does not get substituted, but $RUBY_GEN_DIR, which I now set via >> $BASH_ENV, does.

I don't know why this was passing on the main repo even though it was failing on my fork.

PTAL @hzyi-google @software-dov @jbolinger

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants